package com.hb.trade.client.project;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hb.core.pojo.parent.PageResult;
import com.hb.core.pojo.project.homepage.dto.AnnouncementsDTO;
import com.hb.core.pojo.project.homepage.entity.Announcements;
import org.fzzn.core.model.msg.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * describe:
 * 门户相关
 *
 * @author ljs
 * @date 2022-2-18 16:45:04
 */
@FeignClient("hb-project")
public interface AnnouncementsClient {
    /**
     * 分页查询系统公告
     *
     * @param announcementsDTO
     * @return
     */
    @PostMapping("/home/announcementsList")
    Message<PageResult<Announcements>> announcementsList(@RequestBody AnnouncementsDTO announcementsDTO);

    /**
     * 查询系统公告详情
     *
     * @param announcementsDTO
     * @return
     */
    @PostMapping("/home/announcementsDetail")
    Message<AnnouncementsDTO> announcementsDetail(@RequestBody AnnouncementsDTO announcementsDTO);

    /**
     * 保存或者更新系统公告
     *
     * @param announcementsDTO
     * @return
     */
    @PostMapping("/home/AnnouncementsSave")
    Message AnnouncementsSave(@RequestBody AnnouncementsDTO announcementsDTO);

    /**
     * 删除系统公告
     *
     * @param announcementsDTO
     * @return
     */
    @PostMapping("/home/AnnouncementsRemove")
    Message AnnouncementsRemove(@RequestBody AnnouncementsDTO announcementsDTO);
}
